#pragma once
//#include "../diplom.h"
#include "DGraphicObject.h"

class DRect: public DGraphicObject
{
	int m_x;
	int m_y;
	int m_height;
	int m_width;

public:
	DRect(void);
	DRect(int x, int y, int width, int height);
	~DRect(void);

	void Draw(wxDC *dc);
	bool PointInside(wxPoint *);
	float GetArea();
	void SetCoords(int x, int y, int width, int height);
	wxPoint GetPosition() { return wxPoint(m_x, m_y); }
	void ConvertToText(wxString *str);
	wxPoint GetTopLeft(void);
	wxPoint GetBottomRight();
};

